package com.mdd.admin.validate;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel("操作日志创建参数")
public class LogActionCreateValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "aId参数缺失")
    @ApiModelProperty(value = "")
    private Long aId;

    @NotNull(message = "module参数缺失")
    @ApiModelProperty(value = "模块")
    private String module;

    @NotNull(message = "controller参数缺失")
    @ApiModelProperty(value = "控制器")
    private String controller;

    @NotNull(message = "action参数缺失")
    @ApiModelProperty(value = "方法")
    private String action;

    @NotNull(message = "intro参数缺失")
    @ApiModelProperty(value = "描述")
    private String intro;

    @NotNull(message = "uid参数缺失")
    @ApiModelProperty(value = "用户id")
    private Long uid;

    @NotNull(message = "account参数缺失")
    @ApiModelProperty(value = "账号")
    private String account;

    @NotNull(message = "aid参数缺失")
    @ApiModelProperty(value = "模块下系统id")
    private Long sys_aid;

    @NotNull(message = "ip参数缺失")
    @ApiModelProperty(value = "请求真实IP")
    private String ip;

    @NotNull(message = "params参数缺失")
    @ApiModelProperty(value = "参数")
    private String params;

    @NotNull(message = "result参数缺失")
    @ApiModelProperty(value = "结果")
    private String result;

}
